package com.hz.dao;

import com.hz.pojo.UserWithdrawDeposit;
import com.hz.pojo.WithdrawDeposit;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserWithdrawDepositDao {
    /**
     * 查询所有提现记录
     * @param pages     偏移量
     * @param pageSize  每页显示数量
     * @param state     状态
     * @param user_name 用户名
     * @return
     * @throws Exception
     */
    public abstract List<UserWithdrawDeposit> getUserWithdrawDeposit(@Param("pages") Integer pages,@Param("pageSize") Integer pageSize,@Param("state") Integer state, @Param("user_name") String user_name)throws Exception;

    /**
     * 获取指定状态提现数量
     * @param state         状态
     * @param user_name     用户名
     * @return
     * @throws Exception
     */
    public abstract int getUserWithdrawDepositCount(@Param("state") Integer state, @Param("user_name") String user_name)throws Exception;

    /**
     * 更改用户的提现状态
     * @param withdrawDeposit    需要更改的信息
     * @return
     * @throws Exception
     */
    public abstract int updUserWithdrawDeposit(WithdrawDeposit withdrawDeposit)throws Exception;

}


